<?php

//PHP ADODB document - made with PHAkt 3.6.0
 
/*
	Vista: Vista Default
	
*/
?>
	<div id"vista">
      <?php
	  
	echo $tNGs->getErrorMsg();
?>
      <div class="KT_tng">
        <h1>
          <?php 
// Show IF Conditional region1 
if (@$_GET['id_autor'] == "") {
?>
<?php echo NXT_getResource("Insert_FH"); ?>
<?php 
// else Conditional region1
} else { ?>
<?php echo NXT_getResource("Update_FH"); ?>
<?php } 
// endif Conditional region1
?>
          Autor </h1>
        <div class="KT_tngform">
          <form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>">
            <?php $cnt1 = 0; ?>
<?php
  while (!$rsautor->EOF) { 
?>
<?php $cnt1++; ?>
<?php 
// Show IF Conditional region1 
if (@$totalRows_rsautor > 1) {
?>
                <h2><?php echo NXT_getResource("Record_FH"); ?>
<?php echo $cnt1; ?></h2>
                <?php } 
// endif Conditional region1
?>
              <table cellpadding="2" cellspacing="0" class="KT_tngtable">
                <tr>
                  <td class="KT_th"><label for="nombre_autor_<?php echo $cnt1; ?>">Nombre del autor:</label></td>
                  <td><input type="text" name="nombre_autor_<?php echo $cnt1; ?>" id="nombre_autor_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($rsautor->Fields('nombre_autor')); ?>" size="32" maxlength="100" />
                      <?php echo $tNGs->displayFieldHint("nombre_autor");?>
<?php echo $tNGs->displayFieldError("autor", "nombre_autor", $cnt1); ?> </td>
                </tr>
                <tr>
                  <td class="KT_th"><label for="apellido_autor_<?php echo $cnt1; ?>">Apellido del autor:</label></td>
                  <td><input type="text" name="apellido_autor_<?php echo $cnt1; ?>" id="apellido_autor_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($rsautor->Fields('apellido_autor')); ?>" size="32" maxlength="100" />
                      <?php echo $tNGs->displayFieldHint("apellido_autor");?>
<?php echo $tNGs->displayFieldError("autor", "apellido_autor", $cnt1); ?> </td>
                </tr>
                <tr>
                  <td class="KT_th"><label for="biografia_autor_<?php echo $cnt1; ?>">Biografia del autor:</label></td>
                  <td><textarea name="biografia_autor_<?php echo $cnt1; ?>" id="biografia_autor_<?php echo $cnt1; ?>" cols="50" rows="5"><?php echo KT_escapeAttribute($rsautor->Fields('biografia_autor')); ?></textarea>
                      <?php echo $tNGs->displayFieldHint("biografia_autor");?>
<?php echo $tNGs->displayFieldError("autor", "biografia_autor", $cnt1); ?> </td>
                </tr>
              </table>
              <input type="hidden" name="kt_pk_autor_<?php echo $cnt1; ?>" class="id_field" value="<?php echo KT_escapeAttribute($rsautor->Fields('kt_pk_autor')); ?>" />
              <?php
    $rsautor->MoveNext(); 
  }
?>
            <div class="KT_bottombuttons">
              <div>
                <?php 
      // Show IF Conditional region1 
      if (@$_GET['id_autor'] == "") {
      ?>
                  <input type="submit" name="KT_Insert1" id="KT_Insert1" value="<?php echo NXT_getResource("Insert_FB"); ?>" />
                  <?php 
      // else Conditional region1
      } else { ?>
                  <input type="submit" name="KT_Update1" value="<?php echo NXT_getResource("Update_FB"); ?>" />
                  <input type="submit" name="KT_Delete1" value="<?php echo NXT_getResource("Delete_FB"); ?>" onclick="return confirm('<?php echo NXT_getResource("Are you sure?"); ?>');" />
                  <?php } 
      // endif Conditional region1
      ?>
                <input type="button" name="KT_Cancel1" value="<?php echo NXT_getResource("Cancel_FB"); ?>" onclick="return UNI_navigateCancel(event, '')" />
              </div>
            </div>
          </form>
        </div>
        <br class="clearfixplain" />
      </div>
      <p>&nbsp;</p>
     </div>
 </div>
